package cn.ml.springmybatis3.service;

import cn.ml.springmybatis3.entity.XueYuan3;
import cn.ml.springmybatis3.entity.XueYuan3Example;
import cn.ml.springmybatis3.mapper.XueYuan3Mapper;
import cn.ml.springmybatis3.mapper.XueYuan3MapperImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class XueYuan3ServiceImpl implements XueYuan3Service {
    //111.按类型注入直接注入
    @Autowired
    //222.按名称注入与xml中id相对应
    //@Resource(name = "sMapper")
    private XueYuan3Mapper xueYuan3Mapper;

    @Override
    public void save(XueYuan3 xueYuan) {

    }

    @Override
    public void delete(int id) {

    }

    @Override
    public void update(XueYuan3 xueYuan) {

    }

    @Override
    public List<XueYuan3> list(XueYuan3Example example) {
        return xueYuan3Mapper.selectByExample(example);
    }
}
